import request from '@/utils/request'

// 查询按客户划分的排放列表
export function listCustomerEmissions(query) {
  return request({
    url: '/result/customerEmissions/list',
    method: 'get',
    params: query
  })
}

// 查询按客户划分的排放详细
export function getCustomerEmissions(id) {
  return request({
    url: '/result/customerEmissions/' + id,
    method: 'get'
  })
}

// 新增按客户划分的排放
export function addCustomerEmissions(data) {
  return request({
    url: '/result/customerEmissions',
    method: 'post',
    data: data
  })
}

// 修改按客户划分的排放
export function updateCustomerEmissions(data) {
  return request({
    url: '/result/customerEmissions',
    method: 'put',
    data: data
  })
}

// 删除按客户划分的排放
export function delCustomerEmissions(id) {
  return request({
    url: '/result/customerEmissions/' + id,
    method: 'delete'
  })
}

// 导出按客户划分的排放
export function exportCustomerEmissions(query) {
  return request({
    url: '/result/customerEmissions/export',
    method: 'get',
    params: query
  })
}